﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Program
    {
        static void Main(string[] args)
        {
            // Cat C = new Cat();
            // C.Leg = 4;
            // C.Sleep();
            // C.Walk();
            // C.SeeInNigth();
            // C.Cry();
            // C.CatchMouth();
            // C.Eat();
            // Console.WriteLine("--------------老虎-------------------");
            // Tiger T = new Tiger();
            // T.Leg = 4;
            // T.Sleep();
            // T.Walk();
            // T.SeeInNigth();
            // T.Cry();
            // T.Eat();
            // Console.WriteLine("--------------老鹰-------------------");
            // Eagle E = new Eagle();
            // E.Leg = 2;
            // E.Sleep();
            // E.Walk();
            // E.Fly();
            // E.Cry();
            // E.Eat();
            // Swallow S = new Swallow();
            //S.Leg = 2;
            //S.Sleep();
            //S.Walk();
            //S.Fly();
            //S.Cry();
            //S.Eat();

            Console.WriteLine("--------------猫猫儿-------------------");
            Cat tom = new Cat();
            tom.CatchMouth();
            tom.SeeInNigth();
            Petshop PS = new Petshop();
            PS.ConsignCat(tom);
            Console.WriteLine("--------------老虎-------------------");
            Tiger sign = new Tiger();
            PS.ConsignCat(sign);
            Console.WriteLine("--------------老鹰-------------------");
            Eagle E = new Eagle();
            PS.ConsignCat(E);
            Console.WriteLine("---------------燕子------------------");
            Swallow S = new Swallow();
            PS.ConsignCat(S);

        }
    }
}
